<?php 
require_once (__DIR__ . "/../../models/OrderItems.php");
$results = OrderItems::GetAll();

?>
				<a href="<?= "$rootUrl/../W/OrderItems/create"?>"><b>Add...</b></a>
				<table class="table table-bordered table-condensed table-hover table-striped">
					<tr>
						<th>ProductId</th><th>OrderId</th><th>Quantity</th><th>Actions</th>
					</tr>
					
					<?php while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?php echo $row['productId']; ?></td> <td><?php echo $row['orderId'];?> </td><td><?php echo $row['quantity'];?> </td>
							<td>
								<a href="<?= "$rootUrl/../W/OrderItems/details/$row[id]"?>">Details</a>
								<a href="<?= "$rootUrl/../W/OrderItems/edit/$row[id]"?>">Edit</a>
								<a href="<?= "$rootUrl/../W/OrderItems/delete/$row[id]"?>">Delete</a>
							</td>					
						</tr>
					<?php endwhile; ?>
					
				</table>